/* ****************************************************************
   ****************************************************************
   * Com++ Professional (c) 2009 C++ World
   * http://www.cplusplusworld.com/ mailto:compp@cplusplusworld.com
   ****************************************************************
   ****************************************************************
*/


#ifndef  _LAUNCHH
#define _LAUNCHH

#include "ComPlusPlus/Clone.h"
#include <string>

namespace compp {

class Launch  : public Clone {

private:

protected:
    
    std::string Command;
    char *mArgv[255]  ;
    virtual int  Run ( ) ;

public:

  Launch( const std::string &cmdargs ) ;
  ~Launch() ;

  void SetCommand (const std::string &cmdargs = "" );
  int Spawn(  );

};
}

#endif

